<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=category&act=list&sysgroupid={:$sysgroupid}">{:$groupname}</a> &raquo; 内容排序</p><!-- inc:position.fr --></div>

<script language="Javascript" src="js/sort.js"></script>
<script language="javascript">
 function changese(obj){
  window.location.href="{:$mainlink}?file=msg&act=orderlist&sysgroupid={:$sysgroupid}&cateid="+obj.value;
 }
 function changese_Otherid(obj){
  window.location.href="{:$mainlink}?file=msg&act=orderlist&sysgroupid={:$sysgroupid}&otherid="+obj.value+"&cateid="+"{:$cateid}";
 }
 function changese_Back(){
  window.location.href="{:$mainlink}?file=msg&act=orderlist&sysgroupid={:$sysgroupid}&cateid="+"{:$cateid}";
 }
</script>

<script language="javascript"> 
function OutSort(form)
{
	var j =  new Array(form.updownlist.options.length);
	for(i=0;i<form.updownlist.options.length;i++)
	{
		j[i] = form.updownlist.options[i].value+"=";    
	}
	
	var g = "";
	for(i=0;i<j.length;i++)
	{
		g = g+j[i];
	}
	document.productsTypeActionForm.listlayer.value=g;  
}
</script>
<!-- 信息列表页 -->
<div class="toptitle clear">
	<a href="{:$mainlink}?file=index" class="toptitle_left">系统首页</a> &raquo; 
	排序列表 &raquo; 
	<input class="global_btn" type="button" value="添加<!-- if($proID) -->附加图片<!-- else -->新{:$groupname}<!-- end -->" onclick="qgurl('{:$r_url}&act=add&sysgroupid={:$sysgroupid}<!-- if($proID) -->&proID={:$proID}<!-- end --><!-- if($cateid) -->&cateid={:$cateid}<!-- end -->')" />
	<input class="global_btn" type="button" value="管理{:$groupname}分类" onclick="qgurl('{:$mainlink}?file=category&act=list&sysgroupid={:$sysgroupid}')" />
	<input class="global_btn" name="button" type="button" onclick="qgurl('{:$mainlink}?file=msg&act=orderlist&sysgroupid={:$sysgroupid}')" value="内容排序" />
</div>
	
<table class="stable">
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;分类：</td>
    <td>
      <select name="cateid" id="cateid" onchange="changese(this)">
        <option value="0">选择分类...</option>
        <!-- $catelist AS $key=>$value -->
        <!-- if($value[parentid]==0) -->
        <!-- else -->
        <option value="{:$value[id]}" {if($cateid == $value[id])} selected{end}>{:$value[space]}{:$value[catename]}</option>
        <!-- end -->
        <!-- end -->
      </select>
      
      附加图片分类：
      <select name="Otherid" id="Otherid" onchange="changese_Otherid(this)">
        <option value="0">选择分类...</option>
        <!-- $msglist AS $key=>$value -->
        <option value="{:$value[id]}" {if($otherid == $value[id])} selected{end}>{:$value[subject]}</option>
        <!-- end -->
      </select>
      <!-- if($otherid) --><button class="gbutton gbutton_min" type="button" onclick="changese_Back()">后退</button><!-- end -->
      &nbsp;<font color="#ff0000">（选择相应类别，对所属内容进行排序，默认不"选择分类"为首页所有产品排序，如不需要对附加图进行排序则不必选择）</font>
    </td>
  </tr>
</table>

<div class="page_pad">
  <div class="content_add"><button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=msg&act=neworderlist&sysgroupid={:$sysgroupid}{if($otherid)}&otherid={:$otherid}{end}{if($cateid)}&cateid={:$cateid}{end}')">图文显示</button></div>
  
<form action="{:$mainlink}?file=msg&act=orderbyok&sysgroupid={:$sysgroupid}&cateid={:$cateid}&otherid={:$otherid}" enctype="multipart/form-data"  onsubmit="javascript:OutSort(this);" method="post" name="productsTypeActionForm">
<Table class="tableBorder" cellSpacing="1" cellPadding="3" width="100%" align="center" border="0" style="margin-top:10px;">
<Tbody>
	<Tr>
		<Td class="forumRow" vAlign="top" align="middle" height="141">
			<div align="left">
				<table width="100%" border="0">
				<tbody>
					<tr>
						<td width="494" height="14"><div align="center">目前现有类别(中)如下</div></td>
						<td vAlign="center" align="middle"><div align="center">请按<font color="#ff0000">箭头方向</font>单击按钮进行操作</div></td>
					</tr>
					<tr>
						<td height="65">
							<div align="center">
								<select name="updownlist" multiple size="18" id="updownlist" style="width:300px;">
								<!-- $msglist AS $key=>$value -->
								<option class="myinput4" value="{:$value[id]}">{:$value[id]}.{:$value[subject]}<!-- if($value[istop]==1) --> [置顶]<!-- end --></option>
								<!-- end -->
								</select>
							</div>
						</td>
						<td vAlign="center" align="middle" width="497">
							<div align="center">
							<table>
							<tbody align="center">
							<tr style="height:25px;">
								<td colspan="3"><input class="global_btn myinput2" id="button" onclick="moveOptionFirst(this.form.updownlist)" type="button" value="▲放置最首" name="button" /></td>
							</tr>
							<tr style="height:25px;">
								<td><input class="global_btn myinput2" onclick="moveOptionUp(this.form.updownlist)" type="button" value="↑向上移动" name="button" /></td>
								<td>&nbsp;</td>
								<td><input class="global_btn myinput2" onclick="moveOptionDown(this.form.updownlist)" type="button" value="↓朝下移动" name="button" /></td>
							</tr>
							<tr style="height:25px;">
								<td colspan="3"><input class="global_btn myinput2" id="button" onclick="moveOptionLast(this.form.updownlist)" type="button" value="▼移动最底" name="button" /></td>
							</tr>
							<tr style="height:25px;">
								<td colspan="3"><input class="global_btn myinput2" id="button" onclick="moveOptionUpSideDown(this.form.updownlist)" type="button" value="▲倒序排列" name="button" /></td>
							</tr>
							</tbody>
							</table>
							</div>
						</td>
					</tr>
					<tr>
						<td colSpan="2">
							<div align="center"><font size="2"><input class="global_btn" type="submit" value="确认" name="sortlist" style="width:50px;" onclick="for(i=0;i<updownlist.options.length;i++)updownlist.options(i).selected=true" />&nbsp; <input class="global_btn" id="reset" onclick="qgurl('{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}{if($cateid)}&cateid={:$cateid}{end}')" type="button" value="返回" style="width:50px;" name="back" /></font></div>
						</td>
					</tr>
					<tr>
						<td colSpan="2"><div class="style1" align="center">单击此确认您目前的排序操作</div></td>
					</tr>
                    <tr>
						<td colSpan="2"><div align="center"></div></td>
					</tr>
				</tbody>
				</table>
			</div>
		</Td>
	</Tr>
</Tbody>
</Table>
<input name="listlayer" type="hidden" /><input type="hidden" value="<?=$_GET['ctid']?>" name="ctid" />
</form>
</div><!--page_pad-->

<!-- inc:frame.bottom -->